package com.hongning.railway.entity.resbean;

import android.os.Parcel;
import android.os.Parcelable;

public class ResExamItem implements Parcelable {

    /**
     * answerTime : 60
     * creationTime : 1565881612000
     * endTime : 1565884800000
     * generateType : 1
     * id : 1020
     * name : 人工
     * startTime : 1565852777000
     * status : 0
     * totalPoints : 7
     * totalTopicNum : 3
     * type : 1
     */

    private int answerTime;
    private long creationTime;
    private long endTime;
    private String generateType;
    private int id;
    private String name;
    private long startTime;
    private int status;
    private int totalPoints;
    private int totalTopicNum;
    private int type;
    private String reserved;
    private int pronum;

    public String getReserved() {
        return reserved;
    }

    public void setReserved(String reserved) {
        this.reserved = reserved;
    }

    public int getPronum() {
        return pronum;
    }

    public void setPronum(int pronum) {
        this.pronum = pronum;
    }

    public static Creator<ResExamItem> getCREATOR() {
        return CREATOR;
    }

    public int getAnswerTime() {
        return answerTime;
    }

    public void setAnswerTime(int answerTime) {
        this.answerTime = answerTime;
    }

    public long getCreationTime() {
        return creationTime;
    }

    public void setCreationTime(long creationTime) {
        this.creationTime = creationTime;
    }

    public long getEndTime() {
        return endTime;
    }

    public void setEndTime(long endTime) {
        this.endTime = endTime;
    }

    public String getGenerateType() {
        return generateType;
    }

    public void setGenerateType(String generateType) {
        this.generateType = generateType;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public long getStartTime() {
        return startTime;
    }

    public void setStartTime(long startTime) {
        this.startTime = startTime;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public int getTotalPoints() {
        return totalPoints;
    }

    public void setTotalPoints(int totalPoints) {
        this.totalPoints = totalPoints;
    }

    public int getTotalTopicNum() {
        return totalTopicNum;
    }

    public void setTotalTopicNum(int totalTopicNum) {
        this.totalTopicNum = totalTopicNum;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.answerTime);
        dest.writeLong(this.creationTime);
        dest.writeLong(this.endTime);
        dest.writeString(this.generateType);
        dest.writeInt(this.id);
        dest.writeString(this.name);
        dest.writeLong(this.startTime);
        dest.writeInt(this.status);
        dest.writeInt(this.totalPoints);
        dest.writeInt(this.totalTopicNum);
        dest.writeInt(this.type);
        dest.writeString(this.reserved);
        dest.writeInt(this.pronum);
    }

    public ResExamItem() {
    }

    protected ResExamItem(Parcel in) {
        this.answerTime = in.readInt();
        this.creationTime = in.readLong();
        this.endTime = in.readLong();
        this.generateType = in.readString();
        this.id = in.readInt();
        this.name = in.readString();
        this.startTime = in.readLong();
        this.status = in.readInt();
        this.totalPoints = in.readInt();
        this.totalTopicNum = in.readInt();
        this.type = in.readInt();
        this.reserved = in.readString();
        this.pronum = in.readInt();
    }

    public static final Creator<ResExamItem> CREATOR = new Creator<ResExamItem>() {
        @Override
        public ResExamItem createFromParcel(Parcel source) {
            return new ResExamItem(source);
        }

        @Override
        public ResExamItem[] newArray(int size) {
            return new ResExamItem[size];
        }
    };
}
